<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>骑驴网-公司分页列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
	<link rel="stylesheet" type="text/css" href="css/comm.css">
	<style type="text/css">
	body {
		/*background-image: url("images/bdybg.jpg");*/
		color: #333;
	}
	.companyList {
		width: 980px;
		text-align: left;
		padding: 10px;
		background-color: #FFFFFF;
		border-top-left-radius: 20px;
		border-top-right-radius: 20px;
		border-bottom-left-radius: 20px;
		border-bottom-right-radius: 20px;
		font-size: 12px;
		/*background-image: url("../images/grey.gif");*/
	}
	.companyList ul {
		list-style: none;	
	}
	.companyList li {
		/*display: block;*/
		padding: 2px 0px;
		margin: 2px 0px; 
	}
	</style>
	<script type="text/javascript">
		//opener = undefined;
		//self = window;
	</script>
  </head>
  
  <body>
  <%@ include file="../header.jsp" %>
    <center>
    <div style="width:980px;text-align:left;margin:10px;">
    	<div style="float:left;">
		<img alt="骑驴网" src="images/qilv.png">
	</div>
	<div style="float:left;font-size:24px;font-weight:bold;padding:22px 0px 5px 15px;">
		${param.method=='getAllNewCompany'?'最新发布的公司':''}
		${param.method=='getAllHotCompany'?'热门评论公司':''}
		${param.method=='getAllGoodCompany'?'好评公司':''}
		${param.method=='getAllBadCompany'?'差评公司':''}
	</div>
	<div style="border:0px;border-top:2px solid #4273B3;clear:both;"></div>
    <div class="companyList">
    	<ul style="margin:0px;padding:0px;">
			<li></li>
			<c:forEach items="${pv.records}" var="company" varStatus="vs">
			  <li style="margin-top:0px;padding-top:3px;height:auto;overflow:hidden;">
			  <a  target="_blank" style="margin-top:0px;padding-top:0px;font-size:13px;" class="compaHref" href="company.html?method=showCompany&id=${company.id}">${company.cname}</a>
			  （网友评分：${company.cscore}分）共有${company.commentCount}条评论
			  <p>${fn:substring(company.cdesc, 0, 120)}${fn:length(company.cdesc)>120?'...':''}</p>
			  </li>
			  <li style="margin:0px;padding:0px;"><hr style="border:0px;border-top:1px dotted #E9EFF6;height:1px;"/></li>
			</c:forEach>
		</ul>
    </div>
    <%@ include file="../share/pager.jsp" %>
    </center>
    <%@ include file="../tailer.jsp" %>
  </body>
<script type="text/javascript">
	function topage(pageNo) {
		location.href="company.html?method=${param.method}&pageNo=" + pageNo;
	}
</script>
<script type="text/javascript" src="js/comm.js"></script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?move=0" charset="utf-8"></script>
</html>
